<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<style> 
    body{
        background: #000;
        margin: 0;
    }
    .wrap{
        width: 100vh;
        height: 100vh;
        overflow: hidden;
        perspective: 1000px;
        /* position: relative; */
    }
    .rail{
        width: 200px;
        height: 200px;
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%,-50%) rotateX(-30deg) rotateY(-30deg);
        border: 1px solid white;
        transform-style: preserve-3d;
    }
    .rail div{
        width: 100%;
        height: 100%;
        background: #141414;
        color: white;
        font-size: 150px;
        display: flex;
        justify-content: center;
        align-items: center;
        position: absolute;
        transform:  rotateX(90deg) translateZ(-100px);
    }
</style>
<body>
    <div class="wrap">
        <div class="rail">
            <div><span>4</span></div>
            <div><span>0</span></div>
            <div><span>4</span></div>
        </div>
        <div class="forWard">
            <div class="box">
                <div></div>
                <div></div>
                <div></div>
                <div></div>
                <div></div>
                <div></div>
            </div>
        </div>
    </div>
</body>
</html>
